JSF 2 « API « JSF Q&A





1. JSF 1.2 NavigationHandler custom navigation    stackoverflow.com

I am trying to extend the NavigationHandler in JSF 1.2, and to keep a stack of the visited pages (more precisely, the view-ids, along with the action and the output). I try ...

2. JSF 2.0 Problem (faces-config)    stackoverflow.com

We have faces-config.xml in JSF 1.0 where we entry about managed-beans, dependencies & navigations etc. I was developing a sample project using JSF 2.0. But, as I don't know annotation, I need ...

3. Manipulating the HttpSession in a JSF ViewHandlerWrapper doesn't work    stackoverflow.com

In a ViewHandlerWrapper-implementation I have following code:

public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException {
    final String token = UUID.randomUUID().toString();

    HttpSession httpSession = (HttpSession) ...

4. CommandLink navigation doesn't work in JSF    stackoverflow.com

i wanted to use the navigation-rule feature of my faces-config.xml (JSF 2.0) but I have some problems with it. I have three files (index.xhtml,index2.html,index3.xhtml) and they look like this:

   ...

5. jsf2 +     stackoverflow.com

I have a mapped bean in faces-config.xml

<managed-bean>
  <managed-bean-name>beanName</managed-bean-name>
  <managed-bean-class>java.util.HashMap</managed-bean-class>
  <managed-bean-scope>view</managed-bean-scope>
  <managed-property>
   <property-name>elements</property-name>
   <map-entries>
    <key-class>java.lang.String</key-class>
    <value-class>path.InputFormElementContainer</value-class>
   ...

6. what is faces context used for?    stackoverflow.com

what is faces context used for?and where exactly is it implemented?

7. Could not find Factory: javax.faces.context.FacesContextFactory problem    stackoverflow.com

I closed the opened eclipse forcibly from task manager and after that i'm recieving the following error in the JSF project i was working at that time. Plz tell me any solution. Thanks ...

8. JSF 2 - How can I get a context-param value from web.xml using JSF EL?    stackoverflow.com

I would like to declare some constant values used by my JSF 2 webapp inside the web.xml file like so:

<web-app>
    <context-param>
        ...

9. JSF 2.0 Application Startup doesn't have FacesContext Initialized    stackoverflow.com

We are using JSF2.0 and we need to load few managed beans from FacesConfig.xml because of loading some configured properties ,so no using managed property. While the server is starting , the ...





10. Getting FaceletContext from FacesContext in JSF 1.2    stackoverflow.com

How to get FaceletContext from FaceletContext in JSF 1.2? The problem is that I am creating a Tab dynamically and I want to include a view inside the newly created Tab. Including ...

11. Getting list of all users that are currently connected    stackoverflow.com

I already know that this line takes care of getting the current logged-in user in a JSF 2 application:

     connectedUserName = FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal().getName();
Is there any way can I ...

12. What is the use of faces-config.xml in JSF 2?    stackoverflow.com

just wondering, after the JSF 2 big support for annotations what will i use the faces-config.xml in, what it's importance now ? in other words, what are the configuration that can only be ...

13. empty faces-config.xml    stackoverflow.com

Is there any other way to tell JEE 6 app server that project is going to use JSF? I'd love to do this somehow using annotations or maybe initialization code on appcontext, ...

14. How to create links relative to the right context?    stackoverflow.com

I have this composition :

<!DOCTYPE html>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"> 


    <h:panelGroup rendered="#{empty userc.userb.user.id}">
      ...

15. Struts 2 JSF plugin:faces-config.xml null or empty    struts.1045723.n5.nabble.com





17. JSF 2.0 FacesContext.IsPostback()    coderanch.com